package org.clipjoint.vo;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 	json结果封装实体类
 * @author
 * date: 2021-1-14	
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class JsonResult {
	
	// 0成功，1失败
	private Integer code;
	
	// 提示信息
	private String msg;
	
	// 封装的数据
	private Object data;

	private Long count;

	public String toJsonString() {
		return JSON.toJSONString(this);
	}
}
